package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class BirthdayPresenter : BasePresenter<BirthdayContract.Model, BirthdayContract.View>(), BirthdayContract.Presenter {

    override fun createModel(): BirthdayContract.Model? = BirthdayModel()

    override fun updateBirthday(userUuid: String, birthday: String) {
        mModel?.updateBirthday(userUuid, birthday)?.ss(mModel, mView) {
            mView?.updateBirthdaySuccess(success = true)
        }
    }
}